package third;

public class WeekWorker extends Employee{
    double weekMoney;

    public WeekWorker(double yearMoney) {
        this.weekMoney = yearMoney;
    }

    public double earnings() {
        return weekMoney * 52;
    }

    public double getYearMoney() {
        return weekMoney;
    }

    public void setYearMoney(double weekMoney) {
        this.weekMoney = weekMoney;
    }
}
